/*
 * Copyright (c) 2020 dby4cloud Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.supplychain.scm.core.basis.constant;

/**
 * @author lengleng
 * @date 2019/2/1
 */
public interface CommonConstants {

	/**
	 * 删除
	 */
	Boolean STATUS_DEL =Boolean.TRUE;

	/**
	 * 正常
	 */
	Boolean STATUS_NORMAL = Boolean.FALSE;

	/**
	 * 未锁定状态
	 */
	String STATUS_UNLOCK = "0";

	/**
	 * 锁定
	 */
	String STATUS_LOCK = "9";

	/**
	 * 菜单树根节点
	 */
	Long MENU_TREE_ROOT_ID = -1L;

	/**
	 * 菜单
	 */
	String MENU = "0";

	/**
	 * 编码
	 */
	String UTF8 = "UTF-8";

	/**
	 * JSON 资源
	 */
	String CONTENT_TYPE = "application/json; charset=utf-8";

	/**
	 * 前端工程名
	 */
	String FRONT_END_PROJECT = "dby-ui";

	/**
	 * 后端工程名
	 */
	String BACK_END_PROJECT = "dby";

	/**
	 * 成功标记
	 */
	Integer SUCCESS = 0;

	/**
	 * 失败标记
	 */
	Integer FAIL = 1;

	/**
	 * 服务降级响应标记
	 */
	Integer SERVICE_FAIL = 2;

	/**
	 * 验证码前缀
	 */
	String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY_";

	/**
	 * 当前页
	 */
	String CURRENT = "current";

	/**
	 * size
	 */
	String SIZE = "size";

	/**
	 * 常量零
	 */
	Integer ZERO = 0;

	/**
	 * 常量1
	 */
	Integer ONE = 1;

	/**
	 * 常量2
	 */
	Integer TWO = 2;

	/**
	 * 常量4
	 */
	Integer FOUR = 4;

	/**
	 * 常量25
	 */
	Integer TWENTY_FIVE = 25;

	/**
	 * 常量10
	 */
	Integer TEN = 10;

	/**
	 * 常量50
	 */
	Integer FIFTY = 50;

	/**
	 * 常量100
	 */
	Integer HUNDRED = 100;

	/**
	 * mapstruct componentModel
	 */
	String COMPONENT_MODEL = "spring";
	/**
	 * 默认短信验证码
	 */
	String DEFAULT_SMS_CODE = "888888";

	/**
	 * header 中版本信息
	 */
	String VERSION = "version";

	/**
	 * header 中版本信息
	 */
	String GROUP = "group";

	/**
	 * 不可用状态
	 */
	Integer DISABLE_STATUS = ZERO;

	/**
	 * 可用状态
	 */
	Integer ENABLE_STATUS = 1;

	/**
	 * 三方接口业务处理成功标志
	 */
	String THIRD_API_SUCCESS_CODE = "SUCCESS";
	/**
	 * 生产
	 */
	String PRODUCE = "prod";
	/**
	 * 开发
	 */
	String DEVELOP = "dev";
	/**
	 * 测试
	 */
	String TEST = "test";
	/**
	 * 预发布
	 */
	String PRE_RELEAS = "pred";
	/**
	 * jti短令牌
	 */
	String JTI = "jti";

}
